package com.kmxd.ams.client.jy.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 授权信息
 *
 * @author ZuoLG
 * @since 2023-10-16
 */
@Schema(description = "授权信息对象")
@Data
public class AuthArchTypeDTO implements Serializable {

  private static final long serialVersionUID = 1L;

  /** ID */
  @Schema(description = "ID")
  private Long id;

  /** 用户ID */
  @Schema(description = "用户ID")
  private Long userId;

  /** 用户姓名 */
  @Schema(description = "用户姓名")
  private String userName;

  /** 来访日期 */
  @Schema(description = "来访日期")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date visitorTime;

  /** 登录限时 */
  @Schema(description = "登录限时")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date loginAuthority;

  /** 来访人数 */
  @Schema(description = "来访人数")
  private Integer visitorNumber;

  /** 查档范围 */
  @Schema(description = "查档范围")
  private String scopeArchiving;

  /** 原文浏览 */
  @Schema(description = "原文浏览,0:无权限，1：仅公开，2：直接浏览")
  private String textBrowsingOpen;

  /** 授权档案库对象 */
  @Schema(description = "授权档案库对象")
  private List<AuthDatabaseAddDTO> authDatabase;
}
